package com.asset.salesforce.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Table(name="action_selected_value")
@Entity
public class ActionSelectedValue implements Serializable {

	private Integer id;
	private Integer valueId;
	private ActionFieldValue actionFieldValue;
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="action_selected_value_id_seq")
	@SequenceGenerator(name="action_selected_value_id_seq",sequenceName="action_selected_value_id_seq",allocationSize=1)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name="value_id")
	public Integer getValueId() {
		return valueId;
	}
	public void setValueId(Integer valueId) {
		this.valueId = valueId;
	}
	
	@ManyToOne
	@JoinColumn(name="action_field_value_id")
	public ActionFieldValue getActionFieldValue() {
		return actionFieldValue;
	}
	public void setActionFieldValue(ActionFieldValue actionFieldValue) {
		this.actionFieldValue = actionFieldValue;
	}
	
}
